package com.haiyou.common.base;

import org.apache.ibatis.annotations.SelectProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

@RegisterMapper
public interface MySelects2Mapper<T> {

    /**
     * 根据Example条件进行查询
     */
    @SelectProvider(type = MySelect2Provider.class, method = "dynamicSQL")
    T getOneByExample(Object example);
}
